package slt.Dao;

import java.lang.reflect.Type;
import com.google.gson.*;
import slt.Model.Message;

public class MessageSerialiser implements JsonSerializer<Message> {
    @Override
    public JsonElement serialize(Message message, Type typeOfSrc, JsonSerializationContext context) {
       Gson gson = new Gson();
       return gson.toJsonTree(message);
    }
}